package chapter09;

/**
 * Created by V5470-I5 on 2016/4/2.
 */
import java.util.*;

public class Messages3{
    public static void main(String[] args){
        Map<String,String>messages =new TreeMap<>((s1,s2)->s1.compareTo(s2));
        messages.put("Messi","Hello!Messi的信息");
        messages.put("Suares","给Suares的悄悄话");
        messages.put("Neymar","Neymar的可爱喵喵叫！");

        System.out.println(messages);
    }
}